package com.hsu.example.provider;

import com.hsu.example.common.service.UserService;
import com.hsu.hsurpc.registry.LocalRegistry;
import com.hsu.hsurpc.server.HttpServer;
import com.hsu.hsurpc.server.VertxHttpServer;

/**
 * 服务提供者启动类
 * @Author Hsu琛君珩
 * @Date 2024-09-17 1:17
 * @Description
 * @Version: v1.0.0
 */
public class EasyProviderExample {

    public static void main(String[] args) {
        // 注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动 Web 服务器
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
